package tech.bmatch.redpack.model;

import java.util.List;

/**
 * 红包的基础数据
 *
 * @author: Awake
 * @date: 2018-11-02 17:06
 **/
public class RedPack extends BaseModel {
    /**
     * 红包类型
     */
    private RedPackType type;
    /**
     * 优惠类型
     */
    private CouponType couponType;
    /**
     * 红包金额
     */
    private int amount;
    /**
     * 红包有效期
     */
    private int validity;
    /**
     * 红包使用条件
     */
    private List<RedPackCondition> conditions;

    public RedPackType getType() {
        return type;
    }

    public void setType(RedPackType type) {
        this.type = type;
    }

    public CouponType getCouponType() {
        return couponType;
    }

    public void setCouponType(CouponType couponType) {
        this.couponType = couponType;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getValidity() {
        return validity;
    }

    public void setValidity(int validity) {
        this.validity = validity;
    }

    public List<RedPackCondition> getConditions() {
        return conditions;
    }

    public void setConditions(List<RedPackCondition> conditions) {
        this.conditions = conditions;
    }
}
